float value;
 

void setup()
 {
   Serial.begin(9600);
   pinMode(A0,INPUT);
 }
 

void loop() 
 {
   value = analogRead(A0);
   double distance;
    distance = 7.84E-9*pow(value,4)-(1.25E-5)*pow(value,3) +0.00741*pow(value,2)- 2.034*value+ 254.7;
  Serial.println(distance);
  delay(10000);
 }
 }
 
